
function setbackgroundcolor()
    --disp:setColor(199,237,204)--background color
    disp:setColor(255,255,255)
end


function clean_screen()
    setbackgroundcolor()
    disp:drawBox(0, 0, 240, 41)
    disp:drawBox(0, 281, 240, 40)
    disp:drawBox(0, 121, 240, 40)
    disp:drawBox(0, 81, 240, 40)
    disp:drawBox(0, 241, 240, 40)
    disp:drawBox(0, 41, 240, 40)
    disp:drawBox(0, 161, 240, 40)
    disp:drawBox(0, 201, 240, 40)
end

function draw_powerbtn()

    --disp:setColor(255, 0, 0)
    --for i=80,100 do
    --    disp:drawCircle(120, 160, i, ucg.DRAW_ALL)
    --end
    
   
    disp:setColor(255, 0, 0)
    disp:drawDisc(120, 160, 100, ucg.DRAW_ALL)
    
    setbackgroundcolor()
    disp:drawDisc(120, 160, 60, ucg.DRAW_ALL)
    
    setbackgroundcolor()   
    disp:drawRBox(90,40, 60,120, 10)
    
    disp:setColor(255, 0, 0)
    disp:drawRBox(100,40, 40,120, 10)

end

function draw_powerbtn_on()


    --disp:setColor(0, 255, 0)
    --disp:drawRBox(100,40, 40,120, 10)
    setbackgroundcolor()
    disp:drawRBox(90,40, 60,120, 10)
    
    disp:setColor(0, 255, 0)
    disp:drawDisc(120, 160, 100, ucg.DRAW_ALL)
    setbackgroundcolor()
    disp:drawDisc(120, 160, 60, ucg.DRAW_ALL)

end

function draw_string(x,y,str)
        disp:setColor(255, 255, 255)
        disp:setFont(ucg.font_ncenB24_tr)
        disp:setPrintPos(x,y)
        disp:print(str)
end

function draw_GradienBox()
        disp:setColor(0, 255, 0, 0);
        disp:setColor(1, 0, 255, 0);
        disp:setColor(2, 255, 0, 255);
        disp:setColor(3, 0, 255, 255);
        disp:drawGradientBox(0, 0, 240, 320)
end